Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: read receipts #30637

Merged
merged 17 commits into from
Oct 31, 2023
Merged

test: read receipts #30637

merged 17 commits into from
Oct 31, 2023

Conversation

heitortanoue
Copy link
Contributor

@heitortanoue heitortanoue commented Oct 13, 2023

Proposed changes (including videos or screenshots)

Create a new file dedicated to the read-receipts feature tests and improve its coverage (including some edge-cases introduced in the last major release).

Issue(s)

Steps to test or reproduce

Further comments

TC-502

@changeset-bot
Copy link

changeset-bot bot commented Oct 13, 2023

🦋 Changeset detected

Latest commit: 91f8410

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 30 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/api-client Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #30637 (91f8410) into develop (6167ddf) will decrease coverage by 0.20%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #30637      +/-   ##
===========================================
- Coverage    51.34%   51.14%   -0.20%     
===========================================
  Files          815      815              
  Lines        15121    15271     +150     
  Branches      2754     2834      +80     
===========================================
+ Hits          7764     7811      +47     
- Misses        6948     7020      +72     
- Partials       409      440      +31     
Flag Coverage Δ
e2e 48.32% <ø> (-0.18%) ⬇️
unit 64.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 25, 2023
@heitortanoue heitortanoue marked this pull request as ready for review October 25, 2023 13:22
@heitortanoue heitortanoue requested a review from a team as a code owner October 25, 2023 13:22
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Oct 25, 2023
Copy link
Contributor

@pierre-lehnen-rc pierre-lehnen-rc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need multiple describe sections for all situations you're testing, each one with their own messages in the correct state.

1 - simple message and thread that nobody has read yet
2 - simple message and thread where the room message was read by another user but the thread message was not
3 - another test where everything was read by both users
4 - another test that checks the result of getReadReceipts after the call to readThreads

@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Oct 26, 2023
Copy link
Contributor

@pierre-lehnen-rc pierre-lehnen-rc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid calling expect inside the before section of tests; if the call fails the test will fail anyway.

@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Oct 30, 2023
@heitortanoue heitortanoue added the stat: ready to merge PR tested and approved waiting for merge label Oct 31, 2023
@kodiakhq kodiakhq bot merged commit afdcad7 into develop Oct 31, 2023
@kodiakhq kodiakhq bot deleted the tests/read-receipts branch October 31, 2023 12:41
hugocostadev pushed a commit that referenced this pull request Oct 31, 2023
Co-authored-by: Matheus Barbosa Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants